package cc.messcat.dao.fupin;

import cc.messcat.common.dao.BaseDao;
import cc.messcat.common.model.Pager;
import cc.messcat.entity.fupin.PoorVillage;
import cc.messcat.entity.fupin.PoorVillageHistory;
import cc.messcat.entity.system.McUser;

import java.util.Date;
import java.util.List;

public interface PoorVillageDao extends BaseDao<PoorVillage> {

	PoorVillage getVillageByAreaId(Long areaId);

	List<PoorVillage> getVillagesByCondition(PoorVillage poorVillage);

	Date getAddTimeById(Long id);

	PoorVillage getVillageByAreaIdWithClear(Long id, String annual);

	boolean isExsitVillage(Long id, String annual);

	Pager poorVillageStatistics(Integer pageNo, Integer pageSize, String year, String country, String village, String type);

	Pager poorVilageDevelopmentclass(Integer pageNo, Integer pageSize, String year, String country, String village, String status);

	Pager poorVilageLandformclass(Integer pageNo, Integer pageSize, String year, String country, String village, String status);

	Pager ruralTourism(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village, String status);

	Pager satelliteMonitor(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village, String status);

	Pager construction(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village, String status);

	Pager information(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village, String status);

	Pager duplicateIDnumber(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village);

	void merge(PoorVillage poorVillage);

	Pager pvcStatistics(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village, String status);

	Pager poorVilageLand(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village, String type);

	Pager poorVilageOfficialsAndMembers(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village,
		String type);

	Pager poorVilageRoad(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village, String type);

	Pager poorVilageWater(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village, String type);

	Pager poorVilageDanger(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village, String type);

	Pager poorVilageInsurance(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village,
		String type);

	Pager poorVilageCharacteristic(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village,
		String type);

	Pager poordecreaseofPopulation(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village,
		String type);

	Pager perIncomeStatistics(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village,
		String status);

	Pager villageIncomeStatistics(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village,
		String type);

	Pager wtpStatistics(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village, String status);

	Long addPoorVillageHistory(PoorVillageHistory poorVillageHistory);

	PoorVillageHistory getPoorVillageHistory(Long id);

	
}
